﻿namespace DoNet.Core.DataManager
{
    /// <summary>
    /// 定义主数据和从数据库配置选项
    /// </summary>
    public class DbConnections
    {
        /// <summary>
        /// 连接ID
        /// </summary>
        public string ConnId { get; set; } = string.Empty;

        /// <summary>
        /// 连接启用开关
        /// </summary>
        public bool Enabled { get; set; }

        /// <summary>
        /// 主数据库
        /// </summary>
        public required DbConnectionOptions MasterDB { get; set; }

        /// <summary>
        /// 从数据库
        /// </summary>
        public List<DbConnectionOptions> ReadDB { get; set; } = new List<DbConnectionOptions>();
    }
}
